package br.unigranrio.facebook.controller;

import java.util.List;

import br.com.caelum.vraptor.Get;
import br.com.caelum.vraptor.Path;
import br.com.caelum.vraptor.Resource;
import br.com.caelum.vraptor.Result;
import br.unigranrio.facebook.dao.FamiliaDao;
import br.unigranrio.facebook.modelo.Familia;

@Resource
public class FamiliaController {
	
	private final FamiliaDao dao;
	private Result result;
	

	public FamiliaController(FamiliaDao dao, Result result) {
		this.dao = dao;
		this.result = result;
		
	}
			
//	@Get
//	@Path("/familia")
//	public List<Familia> lista() {
//		return dao.listaTudo();
//	}
//	
//	@Get
//	@Path("/familia/busca")
//	public List<Familia> busca(String name) {
//		result.include("name", name);
//		return dao.busca(name);
//	}
}
